home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / dev_libs / feelin040718 / sources / text / project.c < prev    next >
C/C++ Source or Header  |  2004-08-03  |  2KB  |  65 lines

  1. ;/*
  2.    F_Create.rexx LIB Feelin:LIBS/Feelin/Text.fc 4 0
  3.    QUIT
  4.    ________________________________________________________________________
  5.  
  6.    (04.00) 2003/08/20
  7.  
  8.    [NEW] FA_Text_SetMin is now  obsolete.  Use  FA_SetMin  with  FV_SetVMin
  9.    instead.
  10.  
  11. */
  12.  
  13. #include "Private.h"
  14.  
  15. struct FeelinBase                  *FeelinBase;
  16.  
  17. ///METHODS
  18. F_METHOD(void,Text_New);
  19. F_METHOD(void,Text_Dispose);
  20. F_METHOD(void,Text_Set);
  21. F_METHOD(void,Text_Get);
  22. F_METHOD(void,Text_Setup);
  23. F_METHOD(void,Text_Cleanup);
  24. F_METHOD(void,Text_AskMinMax);
  25. F_METHOD(void,Text_Draw);
  26. //+
  27.  
  28. F_QUERY()
  29. {
  30.    FeelinBase = Feelin;
  31.  
  32.    switch (Which)
  33.    {
  34.       case FV_Query_ClassTags:
  35.       {
  36.          static struct FeelinMethodEntry Handlers[] =
  37.          {
  38.             (FMethod) Text_New,         NULL, FM_New,
  39.             (FMethod) Text_Dispose,     NULL, FM_Dispose,
  40.             (FMethod) Text_Get,         NULL, FM_Get,
  41.             (FMethod) Text_Set,         NULL, FM_Set,
  42.  
  43.             (FMethod) Text_Setup,       NULL, FM_Setup,
  44.             (FMethod) Text_Cleanup,       NULL, FM_Cleanup,
  45.             (FMethod) Text_AskMinMax,   NULL, FM_AskMinMax,
  46.             (FMethod) Text_Draw,        NULL, FM_Draw,
  47.  
  48.              NULL
  49.          };
  50.  
  51.          static struct TagItem Tags[] =
  52.          {
  53.             FA_Class_Super,            (ULONG) FC_Area,
  54.             FA_Class_LODSize,          (ULONG) sizeof (struct LocalObjectData),
  55.             FA_Class_MethodsTable,     (ULONG) Handlers,
  56.  
  57.             TAG_DONE
  58.          };
  59.  
  60.          return Tags;
  61.       }
  62.    }
  63.    return NULL;
  64. }
  65.